def jisuanqi():
    n1 = int(input('输入第一个数字：'))
    n2 = int(input('输入第二个数字：'))
    f = input('输入运算符（+ - * /):')

    if f == '+':
        print(n1 + n2)
    elif f == '-':
        print(n1 - n2)
    elif f == '*':
        print(n1 * n2)
    elif f == '/':
        print(n1 / n2)



if __name__ == '__main__':
    try:
        jisuanqi()
    except ValueError:
        print('检查输入内容是否为数字')
    except ZeroDivisionError:
        print('除数不能为0')
    except Exception as f:
        print('出现错误：',f)
